from .models import GoodCategory,Good,GoodImg,Caeousel
from rest_framework import serializers

class GoodCategorySer(serializers.ModelSerializer):
    class Meta:
        model = GoodCategory
        fields = "__all__"

# 商品信息序列化器
class GoodSer(serializers.ModelSerializer):
    class Meta:
        model = Good
        fields = "__all__"

# 商品图片序列化器
class GoodImgSer(serializers.ModelSerializer):
    class Meta:
        model = GoodImg
        fields = "__all__"

class CarouselAPIViewSer(serializers.ModelSerializer):
    class Meta:
        model = Caeousel
        fields = "__all__"